A demonstration of a Bar chart with an odd number of Y labels - showiing that any number of Y labels is possible.
This goes in the documents header:<script src="RGraph.common.core.js"></script> <script src="RGraph.common.key.js"></script> <script src="RGraph.bar.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="250"> [No canvas support] </canvas>This is the code that generates the chart:
<script> window.onload = function () { var bar = new RGraph.Bar({ id: 'cvs', data: [153,164,144,125,188,198,200], options: { labels: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'], ylabelsCount: 7, backgroundGridAutofitNumhlines: 7, backgroundGridAutofitNumvlines: 7, numyticks: 14, ymax: 700, gutterLeft: 50, textSize: 16, shadowOffsetx: 2, shadowOffsety: 2, shadowBlur: 2, strokestyle: 'rgba(0,0,0,0)', textAccessible: true } }).draw(); }; </script>